package com.cqan.account.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.cqan.account.dao.DepartmentDao;
import com.cqan.account.entity.Department;
import com.cqan.account.service.DepartmentService;
import com.cqan.service.impl.EntityServiceImpl;

@Service("departmentService")
public class DepartmentServiceImpl extends EntityServiceImpl<Department,Long, DepartmentDao> implements DepartmentService {

	@Override
	@Autowired
	public void setEntityDao(DepartmentDao entityDao) {
		this.entityDao = entityDao;
	}

	@Override
	public List<Department> getDepartmentByPid(Long pid) {
		
		return entityDao.getDepartmentByPid(pid);
	}


}
